<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="X-UA-Compatible" content="IE=edge">
    <title> 愤怒的泡面</title>
    <meta name="description" content="A Blog Powered By Hexo">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <#include "/common/public.html"/>
    <link rel="stylesheet" href="/css/prontera.css">
    <style>
        .button {
            border-radius: 10px;
            background-color: #555555;
            border: none;
            color: #ffffff;
            padding: 10px 20px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 12px;
            cursor: pointer;
        }
    </style>
</head>

<body>

<div id="app">
    <#include "/common/header.html"/>
    <main class="container">
        <div class="archive" v-for="(blog,index) in blogs" :key="blog.id">
            <h2 class="archive-year">{{blog.year}}</h2>
            <div class="post-item" v-for="(article,cindex) in blog.articlesList" :key="article.id">
                <div class="post-info">
                    {{article.createTime}}
                    <a v-bind:href="'/api/detail/'+article.id" :title="article.title" target="_blank" class="post-title-link">{{article.title || "&nbsp;"}}</a>
                </div>
            </div>
            <div v-if="blog.pageMap.pages > 1" style="margin: 10px 50px 0">
                <button class="button" @click="loadMore(index)" v-if="blog.pageMap.pageNo < blog.pageMap.pages">加载更多</button>
                <div v-else style="margin: 10px 50px 0;font-size: 12px">没有更多了...</div>
            </div>
            <div v-else style="margin: 10px 50px 0;font-size: 12px">
                没有更多了...
            </div>
        </div>
    </main>

    <!--<main class="container">
        <div class="archive" v-for="(map,index) in blogs2">
            <h2 class="archive-year">{{map.year}}</h2>
            <div class="post-item" v-for="(article,cindex) in map.articlesList">
                <div class="post-info">
                    {{article.createTime}}

                    <a v-bind:href="'/api/detail/'+article.id" :title="article.title" target="_blank" class="post-title-link">{{article.title}}</a>
                </div>

            </div>
        </div>
    </main>-->

    <footer class="footer-container">
        <div class="paginator"></div>
        <div class="copyright">
            <p>© 2017 - 2021
                <a href="https://powman.org">AngryPowman</a>, powered by
                <a href="https://hexo.io/" target="_blank">Hexo</a> and
                <a href="https://github.com/AngryPowman/hexo-theme-prontera" target="_blank">hexo-theme-prontera</a>.
            </p>
        </div>
    </footer>
</div>
<script src="/js/vue.global.js"></script>
<script src="/js/axios.min.js"></script>
<script src="/js/archives/archives.js"></script>
</body>

</html>

